//存储encrypt_token
export function setEncrypt_token(encrypt_token: string) {
    return sessionStorage.setItem("encrypt_token", encrypt_token)
}
export function getEncrypt_token() {
    return sessionStorage.getItem("encrypt_token")
}



//存储诚信token
export function setToken(token: string) {
    return sessionStorage.setItem("token", token)
}
export function getToken() {
    return sessionStorage.getItem("token")
}

//存储支付状态
export function setPayStatus(pay_status: string) {
    return sessionStorage.setItem("pay_status", pay_status)
}

export function getPayStatus() {
    return sessionStorage.getItem("pay_status")
}

export function removePayStatus() {
     sessionStorage.removeItem("pay_status")
}

//存储用户余额
export function setCXBalance(balance:any){
    sessionStorage.setItem("balance", balance)
}

export function getCXBalance(){
   return sessionStorage.getItem("balance")
}


//存储用户id
export function setUserId(userId: string) {
    return sessionStorage.setItem("userId", userId)
}
export function getUserId() {
    return sessionStorage.getItem("userId")
}
export function removeUserId() {
    return sessionStorage.remove("userId")
}
//清空
export function clearSession() {
    return sessionStorage.clear()
}